package com.briup.pts.mapper;

import com.briup.pts.domain.bean.IndexRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface IndexRecordMapper {

    List<IndexRecord> queryByConditional(
            @Param("startWeight") Integer startWeight, @Param("endWeight") Integer endWeight);

    void deleteBatch(@Param("irdIds") List<String> irdIds);

    void insertIndexRecord(IndexRecord indexRecord);

    IndexRecord queryByTime(@Param("irdAnimalId") String irdAnimalId,
                            @Param("irdTime") LocalDateTime irdTime);

    List<IndexRecord> queryByAnimalId(String animalId);
}
